
import request from './request.js';

export default{
   
    getOpenID(query){
        
        return request({
            url: BASE+'/wx/getOpenIdBaseInfoByCode',
            method: 'get',
            params:query
        })
    },
    getRole(query){
        return request({
            url: BASE+'/wx/getRole',
            method: 'get',
            params:query
        })
    },
    getInfo(query){
        return request({
            url: BASE+`/publicUser/info/${openid}`,
            method: 'get'
        })
    },
    queryAllCommunity(query){
        return request({
            url: BASE+'/community/queryAllCommunity',
            method: 'get'
        })
    }
}